<html>
<head>
<title>HỆ THỐNG QUẢN LÝ .::. <?= $info['sitename']?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="styles/style_admin.css" type="text/css">
<style type="text/css">
<!--
.style3 {color: #FFFFFF}
.clsTBPad { padding-top:4px; padding-bottom: 4px; }
-->
</style>
</head>
<script language="javascript" src="jscripts/main.js"></script>
<script language="javascript" src="jscripts/codethatcalendarstd.js"></script>
<script language="javascript" src="jscripts/scroller_ex.js"></script>
<script language="javascript" src="jscripts/menu_vs.js"></script>
<script language="javascript">
var c1 = new CodeThatCalendar(caldef1);
</script>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<?php
	$menu ='
	<table cellpadding="0" cellspacing=1 border="0" align="left">
		<tr>
	';
	
	$path = $info['module_path'] . 'Index/menu.php';
	$menu .= '
		<td height="25" align="center" id="mnuacc" class="mMenu" onmouseout="vsmenu_ereaseBorder(this)">
			<a href="#"><img src="images/bullet_blue.gif" border="0" align="absmiddle">&nbsp;Tài khoản</a>
			<script type="text/javascript"> vsmenu_register("mnuacc",0,"",1,1); </script>
	';
	if ( file_exists($path) )
	{
		$fp = @fopen($path,'r');
		$subMenu = fread($fp,filesize($path));
		fclose($fp);
	}
	$menu .= '
		<div id="mnuacc_menu" style="display: none; background-color:#FFFFFF; width:220px; border: 1px outset #FFFFFF">
	' . $subMenu . '
		</div>
	</td>				
	';
	
	$subMenu = '';
	
	if ( isGod() )
	{
		$menu .= '
			<td height="25" align="center" id="mnusys" class="mMenu" onmouseout="vsmenu_ereaseBorder(this)">
				<a href="#"><img src="images/bullet_blue.gif" border="0" align="absmiddle">&nbsp;Hệ thống</a>
				<script type="text/javascript"> vsmenu_register("mnusys",0,"",1,1); </script>
		';
		
		$path = $info['module_path_free'] . 'menu.php';
		
		if ( file_exists($path) )
		{
			$fp = @fopen($path,'r');
			$subMenu = fread($fp,filesize($path));
			fclose($fp);
		}
		$menu .= '
			<div id="mnusys_menu" style="display: none; background-color:#FFFFFF; width:220px; border: 1px outset #FFFFFF">
			' . $subMenu . '
			</div>
		</td>
		';
	}
	
	$rs_mod = $link->execute("select * from um_module where enabled=1");
	while ( !$rs_mod->EOF )
	{
		if ( (isGod() || getRights($rs_mod->fields('modname'),'view' ) || getPermission($rs_mod->fields('modname'))) && $rs_mod->fields('modname') != "Index" )
		{
			$subMenu = '';
			$path = $info['module_path'] . $rs_mod->fields('modname') . '/menu.php';
			if ( file_exists($path) )
			{
				$menu .= '
					<td height="25" align="center" id="mnu' . $rs_mod->fields('modname') . '" class="mMenu" onmouseout="vsmenu_ereaseBorder(this)">
						<a href="#"><img src="images/bullet_blue.gif" border="0" align="absmiddle">&nbsp;' . $rs_mod->fields('moddesc') . '</a>
						<script type="text/javascript">vsmenu_register("mnu' . $rs_mod->fields('modname') . '",0,"",1,1); </script>
				';
						
				$fp = @fopen($path,'r');
				$subMenu = fread($fp,filesize($path));
				fclose($fp);
				
				$menu .= '
					<div id="mnu' . $rs_mod->fields('modname') . '_menu" style="display: none; background-color:#FFFFFF; width:220px; border: 1px outset #FFFFFF">
				' . $subMenu . '
					</div>
				</td>				
				';
			}
		}
		$rs_mod->movenext();				
	}
	$menu .= '
			</tr>
		</table>
	';
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25" background="images/gmenu.GIF" style="border:2px outset #EEEEEE">
	<?= $menu ?>
	</td>
  </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="98%" align="center">
  <tr>
	<td valign="top" align="center">
	